<?php
/**
 * Created by PhpStorm.
 * User: wangwenfan
 * Date: 16-11-1
 * Time: 下午2:38
 */

function is_login(){
    $user = session('user_auth');
    if (empty($user)) {
        return false;
    }else{
        return $user['uid'];
    }
}